
public class test {

    public static void main(String[] args) {
        //调用
        System.out.println(getJC(5));
    }
    public static int getJC(int n){
        if (n==1){
            return 1;
        }else{
            return n*getJC(n-1);
        }
    }
}
